package chain;

public class Director extends Approver {
    @Override
    public void processRequest(PurchaseRequest request) {
        if (request.getAmount() <= 5000) {
            System.out.println("教学主任审批通过");
        } else if (nextApprover != null) {
            nextApprover.processRequest(request); // 传递请求
        }
    }
}
// 其他级别院长，副校长，（Dean、VicePrincipal、Principal）类似实现
